package com.medical.mapper;

import com.medical.pojo.Device;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DeviceMapper {
    @Select("select * from device")
    List<Device> findAll();
    @Select("select * from device where device_id = #{id}")
    Device getOne(Integer id);
}
